del "C:\tomcat7\webapps\OfficeAutomation.war" 

RD /S /Q "C:\tomcat7\webapps\OfficeAutomation"

cd "D:\MITProject\OfficeAutomationSystem"

call mvn clean

call mvn package

call mvn install

cd "D:\MITProject"